<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:a4j="http://richfaces.org/a4j"
	xmlns:rich="http://richfaces.org/rich"
	xmlns:p="http://primefaces.prime.com.tr/ui">

<ui:composition>
	<h:panelGroup rendered="#{mProperty.propselectedtype == 'p4s'}">
	<table width="100%" cellspacing="5" cellpadding="0" border="0"
		class="table_box">
		<tbody>
			<tr>
				<td align="right">Facility:</td>
				<td><h:inputText value="#{addPropertyBean.propSale.facility}"
						id="prop_Sfacility" />
					<div class="table_td_message">
						<rich:message for="prop_Sfacility" />
					</div>
				</td>
			</tr>
			<tr>
				<td align="right">Square:</td>
				<td><h:inputText value="#{addPropertyBean.propSale.square}"
						id="prop_Ssquare" validator="#{mValidatorLib.SquareValidator}"/>
					<div class="table_td_message">
						<rich:message for="prop_Ssquare" />
					</div>
				</td>
			</tr>
			<tr>
				<td align="right" width="200px">Bedroom:</td>
				<td><h:inputText value="#{addPropertyBean.propSale.bedroom}" maxlength="2"
						id="prop_Sbedroom" validator="#{mValidatorLib.BedRoomValidator}" />
					<div class="table_td_message">
						<rich:message for="prop_Sbedroom" />
					</div>
				</td>
			</tr>
			<tr>
				<td align="right" width="200px">Bathroom:</td>
				<td><h:inputText value="#{addPropertyBean.propSale.bathroom}" maxlength="2"
						id="prop_Sbathroom" validator="#{mValidatorLib.BathRoomValidator}" />
					<div class="table_td_message">
						<rich:message for="prop_Sbathroom" />
					</div>
				</td>
			</tr>
			<tr>
				<td align="right">Type of house*:</td>
				<td><h:selectOneMenu value="#{addPropertyBean.propSale.type}">
						<f:selectItem itemValue="Residential Land"
							itemLabel="Residential Land" />
						<f:selectItem itemValue="Commercial" itemLabel="Commercial" />
						<f:selectItem itemValue="Codominium" itemLabel="Codominium" />
						<f:selectItem itemValue="TownHouse" itemLabel="TownHouse" />
						<f:selectItem itemValue="Multi-unit dweilling"
							itemLabel="Multi-unit dweilling" />
					</h:selectOneMenu>
					<div class="table_td_message">
						<rich:message for="prop_Sstate" />
					</div>
				</td>
			</tr>
			<tr>
				<td align="right">Transport*:</td>
				<td><h:selectOneMenu
						value="#{addPropertyBean.propSale.transport}">
						<f:selectItem itemValue="Car" itemLabel="Car" />
						<f:selectItem itemValue="Bus" itemLabel="Bus" />
					</h:selectOneMenu>
					<div class="table_td_message">
						<rich:message for="prop_Stransport" />
					</div>
				</td>
			</tr>
			<tr>
				<td align="right">Has interior*:</td>
				<td><h:selectOneMenu
						value="#{addPropertyBean.propSale.hasInterior}">
						<f:selectItem itemValue="False" itemLabel="No" />
						<f:selectItem itemValue="True" itemLabel="Yes" />
					</h:selectOneMenu>
					<div class="table_td_message">
						<rich:message for="prop_Shasinterior" />
					</div>
				</td>
			</tr>
			<tr>
				<td align="right">Price* (Australia Dollars):</td>
				<td><h:inputText value="#{addPropertyBean.propSale.price}"
						id="prop_Sprice" maxlength="20" validator="#{mValidatorLib.RentValidator}"/>
					<div class="table_td_message">
						<rich:message for="prop_Sprice" />
					</div>
				</td>
			</tr>
			<tr>
				<td align="right">Payment*:</td>
				<td><h:selectOneMenu
						value="#{addPropertyBean.propSale.payment}" id="prop_Spayment">
						<f:selectItem itemValue="Cash" itemLabel="Cash" />
						<f:selectItem itemValue="Card" itemLabel="Card" />
					</h:selectOneMenu>
					<div class="table_td_message">
						<rich:message for="prop_Spayment" />
					</div></td>
			</tr>


			<tr>
				<td align="right" width="200px"></td>
				<td><h:commandLink
						action="#{addPropertyBean.addNewPropForSale}" styleClass="button"
						value="Publish my Property" />
				</td>
			</tr>
		</tbody>
	</table>
	</h:panelGroup>
</ui:composition>
</html>